"""通过execjs执行js"""
import execjs

list_url = 'http://ggzy.zwfwb.tj.gov.cn:80/jyxxzcgz/1557727.jhtml'
with open('./parse.js', "r", encoding='utf-8') as f:
    ctx = execjs.compile(f.read())
true_url = ctx.call('req', list_url)
print(f"详情的url:{list_url}-----真实的url: {true_url}")
